package com.zhuss.core.db.dao.ext;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.zhuss.bean.bo.core.config.SearchConfigBo;
import com.zhuss.bean.vo.core.config.DetailConfigVo;
import com.zhuss.bean.vo.core.config.ListConfigVo;
import com.zhuss.core.db.dao.gen.ConfigMapper;
import com.zhuss.core.db.entity.Config;

@Mapper
public interface ConfigDao extends ConfigMapper {
	
	void create(Config record);
	
	void delete(Config record);
	
	List<Config> listAll(@Param("type") String type, @Param("area") Integer area);

	List<ListConfigVo> list(SearchConfigBo bo);

	Integer countList(SearchConfigBo bo);

	DetailConfigVo detail(@Param("configId") Long configId);
	
	List<Config> listByValue(@Param("type") String type, @Param("value") String value, @Param("area") Integer area);
	
	List<Config> listByKey(@Param("type") String type, @Param("configKey") String configKey, @Param("area") Integer area);
    
}